#include <iostream>

using std::cout;
using std::endl;

void fabonacci() 
{
    int a=0, b=1;
    int temp;
    while (b<10) {
	cout << b << endl;
	temp = b;
	b = a+b;
	a = temp;
    }
}

int main()
{
    cout << "Fabonacci series: the sum of two elements defines the next" << endl;
    fabonacci();
}
